﻿using System;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.ServiceModel.Web;
using LogisticsVision.Prototype.JsRemoteInvoke.Inventory;
namespace LogisticsVision.Prototype.JsRemoteInvoke.Inventory.Portal
{
    [ServiceContract(Namespace = "Inventory.Wcf")]
    [AspNetCompatibilityRequirements(
        RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    public class CalculatorWcfService : ICalculator
    {
        #region ICalculator Members

        [OperationContract]
        public int Add(int x, int y)
        {
            return x + y;
        }

        [OperationContract]
        public int Multiple(int x, int y)
        {
            return x * y;
        }

        #endregion

    }
}
